drawTex
Extension function to replicate drawGuiTexture from 1.20.2+. Will brute force render the texture passed as a "standard" texture by adding the necessary identifier path information (such as the .png).
This method is surely not very efficient. It is designed to be a porting feature.
Author
fzzyhmstrs
Since
0.2.0
Parameters
Identifier - The sprite identifier (1.20.2+ style) for the image.
Int - the x location of the texture
Int - the y location of the texture
the width of the texture
the height of the texture
Extension function to replicate drawGuiTexture from 1.20.2-1.21.1.
Author
fzzyhmstrs
Since
0.2.0
Parameters
Identifier - The sprite identifier for the image.
Int - the x location of the texture
Int - the y location of the texture
the width of the texture
the height of the texture
the color of the texture
Extension function to replicate drawGuiTexture from 1.20.2-1.21.1.
Author
fzzyhmstrs
Since
0.2.0
Parameters
Identifier - The sprite identifier for the image.
Int - the x location of the texture
Int - the y location of the texture
the width of the texture
the height of the texture
the texture transparency
Extension function to draw a texture, replacing drawtexture.
Author
fzzyhmstrs
Since
0.6.0
Parameters
Identifier - The sprite identifier for the image.
Int - the x location of the texture
Int - the y location of the texture
Float - the horizontal position of the texture region
Float - the vertical position of the texture region
the width of the drawn region in pixels
the height of the drawn region in pixels
the width of the texture in pixels
the height of the texture in pixels